package com.zhm.demo.mysql.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hthium.json.enums.YesOrNoEnum;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物模型
 * </p>
 *
 * @author bell
 * @since 2024-03-26
 */
@Data
@Accessors(chain = true)
@TableName("iot_model")
public class IotModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 逻辑删除 ：Y=是，N=否
     */
    @TableLogic(value = "'N'", delval = "'Y'")
    @TableField("is_delete")
    private YesOrNoEnum isDelete;

    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Long createTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Long updateTime;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 模型key
     */
    @TableField("model_key")
    private String modelKey;

    /**
     * 模型名称
     */
    @TableField("name")
    private String name;


}